-- 事件基类

-- 模块定义
local M = 
{
    _base_class = require "objects.Object",
    _class_name = "events.BaseEvent"
};
setmetatable (M,  {__index = _G;});
_ENV = M;

-- 引用模块
local Tools = require "tools.CommonTools";

-- 方法定义
operation_table = Tools.CreateOperationTable (_base_class);

-- 获得名称
function operation_table.GetName (self)
    return self._name;
end;

-- 构造函数
function NewBaseEvent (event_name)
    local instance = _base_class.NewObject ();
    Tools.PrepareInstance (M, instance);
    instance._name = event_name;
    return instance;
end;


return M;
